<template>
  <div class="top">
    <div class="top-icon" @click="goHome">
      <i class="el-icon-s-home"></i>
    </div>
    <div class="top-text">
      欢迎使用JMES系统！
    </div>

  </div>
</template>

<script>
export default {
  name: 'TopNav',
  data() {
    return {
    }
  },
  methods: {
    /* 跳转到装配报工页面 */
    goHome(){
      this.$router.push('/index')
    }
  }
}

</script>
<style lang="scss">

.top{
  height: 50px !important;
  line-height: 50px !important;
  .top-icon{
    font-size: 30px !important;
    color: #333;
    float: left;
  }
  .top-text {
    float: left;
    margin-left: 30px;
    font-size: 15px !important;
    color: #00afff;
  }
}
</style>
